home *** CD-ROM | disk | FTP | other *** search
/ Champak 108 / jogo-disk-108.iso / Games / simple_tower_defense.swf / scripts / frame_5 / PlaceObject3_168_56 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2010-05-15  |  397b  |  28 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.go == true)
  3.    {
  4.       removeMovieClip(this);
  5.    }
  6.    if(rt >= 1)
  7.    {
  8.       this.removeMovieClip();
  9.    }
  10.    else
  11.    {
  12.       rt++;
  13.    }
  14.    if(_X < 0)
  15.    {
  16.       this.removeMovieClip();
  17.    }
  18.    i = 50;
  19.    while(i < 60)
  20.    {
  21.       if(_root["en" + i].hitTest(this))
  22.       {
  23.          _root["en" + i].el -= dmg;
  24.       }
  25.       i++;
  26.    }
  27. }
  28.